﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SoucreGame.GUI;
using SoucreGame.GLO;
using SoucreGame.DTO;
using Microsoft.Xna.Framework;

namespace SoucreGame.BUS
{
    class CBusiMapChoi
    {

        private List<CBusiNhanVat> quanTa;
        private List<CBusiNhanVat> quanDich;
        public List<CBusiKyNang> kyNang {get; set;}
        private List<CInfO> oGame;

        public CBusiMapChoi()
        {
            List<CBusiNhanVat> quanTa = new List<CBusiNhanVat>();
            List<CBusiNhanVat> quanDich = new List<CBusiNhanVat>();
            List<CBusiKyNang> kyNang = new List<CBusiKyNang>();
            List<CInfO> oGame = new List<CInfO>();
        }
        /// <summary>
        /// khoi tao danh sach quan ta
        /// </summary>
        public List<CBusiNhanVat> QuanTa
        {
            get { return quanTa; }
            set { quanTa = value; }
        }

        /// <summary>
        /// khoi tao danh sach quan dich
        /// </summary>
        public List<CBusiNhanVat> QuanDich
        {
          get { return quanDich; }
          set { quanDich = value; }
        }

        /// <summary>
        /// khoi tao danh sach ky nang
        /// </summary>
        public List<CBusiKyNang> KyNang
        {
            get { return kyNang; }
            set { kyNang = value; }
        }

        /// <summary>
        /// khoi tao danh sach cac o
        /// </summary>
        public List<CInfO> OGame
        {
            get { return oGame; }
            set { oGame = value; }
        }
        public void Update(GameTime gameTime)
        {
            for (int i = 0; i < QuanTa.Count; i++)
                QuanTa[i].Update(gameTime);
            for (int i = 0; i < QuanDich.Count; i++)
                QuanDich[i].Update(gameTime);
            for (int i = 0; i < KyNang.Count; i++)
                KyNang[i].Update(gameTime);     
        }
         
           
        public void Draw(GameTime gameTime)
        {
            for (int i = 0; i < QuanTa.Count; i++)
                QuanTa[i].Draw(gameTime);
            for (int i = 0; i < QuanDich.Count; i++)
                QuanDich[i].Draw(gameTime);
            for (int i = 0; i < KyNang.Count; i++)
                KyNang[i].Draw(gameTime); 
        }
    }
}
